{% extends "apostrophe-modal:baseSlideable.html" %}
{% import "apostrophe-modal:macros.html" as modals %}
{% import "apostrophe-schemas:macros.html" as schemas %}
{% import 'apostrophe-ui:components/buttons.html' as buttons with context %}


{% block controls %}
  {{ buttons.minor('Cancel', { action: 'cancel' }) }}
  {{ buttons.major('Save ' + data.label, { action: 'save' }) }}
{% endblock %}

{% block label %}
{{ __ns('apostrophe', data.label | d('')) }}
{% endblock %}

{% block body %}
  <div class="apos-form" data-apos-form>
    {{ schemas.fields(data.schema) }}
  </div>
{% endblock %}

{% block footerContainer %}{% endblock %}
